package cn.echogo.framework.image;

import android.graphics.Bitmap;

/**
 * 
 * 
 * 大图小图，URL加载可能要存2种图等
 *
 */
public interface IBitmapLoader {
	
	public static final int FROM_MEMORY = 1;
	public static final int FROM_FILE_SYSTEM = 2;
	public static final int FROM_REMOTE = 3;
	
	public Bitmap loadFromMemory(String url);
	
	public Bitmap loadFromFileSystem(String url, BitmapRect rect);
	
	public Bitmap loadFromRemote(String url, BitmapRect rect);
	
	public void saveToMemory(String url, Bitmap bitmap);
	
	public void saveToFileSystem(String url, Bitmap bitmap);
	
	public void setBitmapLoadListener(BitmapLoadListener listener);

}
